import os, sys

os.chdir(sys.path[0])
import logging

LOG_FORMAT = "%(asctime)s - %(levelname)s - %(message)s"
logging.basicConfig(filename='test.log', level=logging.DEBUG, format=LOG_FORMAT)

logging.warning('start')